/*********************************************************************
	\file :           os_sw_layers\application\testapp\p1TestCases.h
	\brief:           
	\author:          Omar Ramirez
	\version:         1.0
	\date:            Wed, 12, Feb 2014 
*********************************************************************/

#ifndef p1TestCases_H
#define p1TestCases_H

/** S12X derivative information */
#include <mc9s12xep100.h>

#include "typedef_OS.h"

/*-- Defines -----------------------------------------------------------------*/
#define LED_Port    PORTA
#define D0         1
#define D1         2
#define D2         4
#define D3         8
#define D4         16
#define D5         32
#define D6         64
#define D7         128

/*-- Macros ------------------------------------------------------------------*/
/* Indicator LEDs handling */

/** Set LED */ 
#define LED_ON(BitMask)                     (LED_Port |= (u8)(BitMask))
/** Clear LED */ 
#define LED_OFF(BitMask)                    (LED_Port &= ~(u8)(BitMask))
/** Toggle LED */ 
#define LED_TOGGLE(BitMask)                 (LED_Port ^= (u8)(BitMask)) 

/** Ports redefinition for macros usability */
#ifndef PTA             
    #define PTA_PTA0 PORTA_PA0 
    #define PTA_PTA1 PORTA_PA1 
    #define PTA_PTA2 PORTA_PA2 
    #define PTA_PTA3 PORTA_PA3 
    #define PTA_PTA4 PORTA_PA4 
    #define PTA_PTA5 PORTA_PA5 
    #define PTA_PTA6 PORTA_PA6 
    #define PTA_PTA7 PORTA_PA7 
#endif
/* Data output register definition */
#define LOW             0
#define HIGH            1

/* Data Direction Register definitions */
#define INPUT           0
#define OUTPUT          1
#define ANALOG_INPUT    2

 


 
/********************************************************************************
* Package description:                                    
*/
 
/********************************************************************************
* \brief First test case, blink led at X frequency.
* \return             
*/
 
void App_BlinkLed(void);

/********************************************************************************
* \brief 
* \return             
*/
 
void App_SetUpTest1(void);

#endif
/*********************************************************************
	File	: os_sw_layers\application\testapp\p1TestCases.h 
*********************************************************************/
